using System.Collections.Generic;
using UnityEngine;

public class ElementsDataHolder : MonoBehaviour
{
	[SerializeField]
	private List<CityBuildingElementData> defaultPack = new List<CityBuildingElementData>();

	[SerializeField]
	private List<CityBuildingElementData> _1Pack = new List<CityBuildingElementData>();

	[SerializeField]
	private List<CityBuildingElementData> _2Pack = new List<CityBuildingElementData>();

	[SerializeField]
	private List<CityBuildingElementData> _3Pack = new List<CityBuildingElementData>();

	[SerializeField]
	private List<CityBuildingElementData> _4Pack = new List<CityBuildingElementData>();

	[SerializeField]
	private List<CityBuildingElementData> _5Pack = new List<CityBuildingElementData>();

	[SerializeField]
	private List<CityBuildingElementData> _6Pack = new List<CityBuildingElementData>();

	[SerializeField]
	private List<CityBuildingElementData> _7Pack = new List<CityBuildingElementData>();

	[SerializeField]
	private List<CityBuildingElementData> _8Pack = new List<CityBuildingElementData>();

	public CityBuildingElementData ElementData(int index)
	{
		return (Preloader.CityBuilderBalanceConfig.BalanceOption switch
		{
			1 => _1Pack, 
			2 => _2Pack, 
			3 => _3Pack, 
			4 => _4Pack, 
			5 => _5Pack, 
			6 => _6Pack, 
			7 => _7Pack, 
			8 => _8Pack, 
			_ => defaultPack, 
		})[index];
	}
}
